using IQIGame.Onigao.Framework;
using IQIGame.Onigao.Game;

namespace IQIGame.Onigao.GamePlay
{
    public class UD_FormationPopup : UIBaseData
    {
        public int formId;
        public int formPos;
        public int selectHeroCid;

        public static UD_FormationPopup Create(int formId, int formPos, int selectHeroCid)
        {
            var d = ClassPool<UD_FormationPopup>.Get();
            d.formId = formId;
            d.formPos = formPos;
            d.selectHeroCid = selectHeroCid;
            return d;
        }

        public static UD_FormationPopup Create(FormationHeroData formationHeroData)
        {
            return Create(formationHeroData.belong.formId, formationHeroData.pos, formationHeroData.cid);
        }

        public override void OnReset()
        {
            formId = 0;
            formPos = 0;
            selectHeroCid = 0;
        }
    }
}
